
package main

import ( 
        "fmt"
        "os"
        "bufio"
        "io"
  //     "strconv"
       "strings"
        )

func main () {
     f1,err1 := os.Open(os.Args[1])
      m1 := make(map[string]string)

     if err1 == nil {
        buf := bufio.NewReader(f1)
        for {
            line,err := buf.ReadString('\n')
             if err != nil || io.EOF == nil {
                 break
             }

                                   arrayLine  := strings.Split(line,"|")
                        if len(arrayLine) > 1 {


                             m1[strings.Replace(line,"\n","",-1)] = strings.Replace(line,"\n","",-1)

                        }

 
        }
     }




    f2,err2 := os.Open(os.Args[2])
      m2 := make(map[string]string)

     if err2 == nil {
        buf := bufio.NewReader(f2)
        for {
            line,err := buf.ReadString('\n')
             if err != nil || io.EOF == nil {
                 break
             }

             m2[strings.Replace(line,"\n","",-1)] = strings.Replace(line,"\n","",-1)

        }
     }



    for k,_ := range m1 {

        arrayLine  := strings.Split(k,"|")
        if len(arrayLine) > 1 {
              t1 :=  arrayLine[0]
              if len(m2[t1]) > 1 {
                         fmt.Println("GET|"+k)
              }else {
                 fmt.Println("LOST|"+k)
              }

   
        }





    }



}
